<!--
    JBoss, Home of Professional Open Source
    Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual
    contributors by the @authors tag. See the copyright.txt in the
    distribution for a full listing of individual contributors.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<html>
<body>
	<h1>Access to MBeans</h1>
	<p>You can use JConsole to inspect and use the MBeans.</p>
	<p>To connect to the JBoss EAP server using JConsole, open a command prompt and type the following command :
	</p>
	<div style="margin-left: 1em;">For Linux:   <i>JDK_HOME</i>/bin/jconsole</div>
  <div style="margin-left: 1em;">For Windows: <i>JDK_HOME</i>\bin\jconsole.exe</div>
  <p>Select the local <i>org.jboss.modules.Main</i> process and click <i>Connect</i>. You are presented with the following screen.</p>
	<img alt="MBeans in JConsole" src="jconsole.png">

	<p>To test the MBeans :</p>
	<ol>
		<li>Click on the JConsole MBeans tab.</li>
		<li>Expand <code>quickstarts</code> in the left column of the console.</li>
		<li>Under <code>quickstarts</code>, you see the 4 MBeans: <code>AnnotatedComponentHelloWorld</code>, <code>MXComponentHelloWorld</code>, <code>MXPojoHelloWorld</code>, and <code>SarMXPojoHelloWorld</code></li>
		<li>Expand each MBean and choose: <code>Operations</code> --&gt; <code>sayHello</code>.</li>
		<li>Type your name in the (p0 String ) input text box and click the sayHello button.</li>
		<li>You will see a popup Window displaying Hello <code>&lt;your name&gt;</code>!.</li>
	</ol>

</body>
</html>
